package com.match.pattern.command.barbecuer;

import java.util.ArrayList;
import java.util.List;

public class Barbecuer {
	List<Command> commands=new ArrayList<>();
	public Barbecuer() {
	}
	
	public void setOrder(Command command) {
		this.commands.add(command);
		command.excuteCommand();
	}
	
	public void removeOrder(Command command) {
		command.undoCommand();
		this.commands.remove(command);
	}
	
}
